﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="frmInvite.ascx.cs" Inherits="GUESTSMANAGEMENT.View.ListsGuests.frmInvite" %>
<%@ Register assembly="Coolite.Ext.Web" namespace="Coolite.Ext.Web" tagprefix="ext" %>

<ext:ScriptManagerProxy ID="ScriptManagerProxy" runat="server">
</ext:ScriptManagerProxy>

<script type="text/javascript">
    var openWindowGuestInvite = function() {
    var winGuestInvite = <%= winGuestInvite.ClientID %>;
        winGuestInvite.show();
    }
</script>

<ext:Window ID="winGuestInvite" runat="server" Collapsible="false" Icon="Image" Title="Cadastro de Convite" ShowOnLoad="false" Width="200" Height="120" Resizable="false">
    <TopBar>
        <ext:Toolbar ID="ToolBar1" runat="server">
            <Items>
                <ext:ToolbarButton ID="btnSaveGuestInvite" Icon="Disk" runat="server">
                    <ToolTips>
                        <ext:ToolTip ID="ToolTip" runat="server" Title="Salvar Convidado">
                        </ext:ToolTip>
                    </ToolTips>
                    <AjaxEvents>
                        <Click OnEvent="FormSave" Before="var valid= #{StatusForm}.getForm().isValid(); if(valid){#{FormStatusBar}.showBusy('Aguarde...');} return valid;">
                            <EventMask ShowMask="true" MinDelay="1000" Target="CustomTarget" CustomTarget="={#{StatusForm}.getEl()}" />
                        </Click>
                    </AjaxEvents>
                </ext:ToolbarButton>
                <ext:ToolbarSeparator ID="ToolbarSeparator" runat="server">
                </ext:ToolbarSeparator>
                <ext:ToolbarButton ID="btnCloseGuestInvite" runat="server" Icon="DoorIn">
                    <Listeners>
                        <Click Handler="#{winGuestInvite}.hide(null);" />
                    </Listeners>
                    <AjaxEvents>
                        <Click OnEvent="Close"></Click>
                    </AjaxEvents>
                    <ToolTips>
                        <ext:ToolTip ID="CloseNewGuestsInvite" runat="server" Title="Sair"></ext:ToolTip>
                    </ToolTips>
                </ext:ToolbarButton>
            </Items>
        </ext:Toolbar>
    </TopBar>
    <Body>
            <ext:FitLayout ID="FitLayout" runat="server">
                <ext:FormPanel ID="StatusForm" runat="server"
                LabelWidth="75"
                Width="190"
                ButtonAlign="Right"
                Border="false"
                BodyStyle="padding:10px 10px 0;">
                <Defaults>
                    <ext:Parameter Name="Anchor" Value="95%" />
                    <ext:Parameter Name="AllowBlank" Value="true" Mode="Raw" />
                    <ext:Parameter Name="SelectOnFocus" Value="true" Mode="Raw" />
                    <ext:Parameter Name="MsgTarget" Value="side" />
                    <ext:Parameter Name="LabelSeparator" Value="" />
                </Defaults>
                <Body>
                    <ext:FormLayout ID="FormLayout" runat="server" LabelAlign="Top">
                        <ext:Anchor>
                            <ext:ComboBox ID="cmbInvite" FieldLabel="Tipo de Convite" runat="server" AllowBlank="false" BlankText="Necessário Selecionar um Tipo de Convite" >
                                <Items>
                                    <ext:ListItem Text="Bônus Feminino" Value="1" />
                                    <ext:ListItem Text="Bônus Masculino" Value="2" />
                                    <ext:ListItem Text="Free Feminino" Value="3" />
                                    <ext:ListItem Text="Free Masculino" Value="4" />
                                </Items>
                            </ext:ComboBox>
                        </ext:Anchor>
                    </ext:FormLayout>
                </Body>
            </ext:FormPanel>
        </ext:FitLayout>
    </Body>
</ext:Window>
